package com.ifdom.thread;

import com.ifdom.thread.multthread.ThreadThirdPool;

import java.util.concurrent.ExecutorService;

public class ExecutorServiceDemo {
    public static void main(String[] args) {
        ExecutorService service = ThreadThirdPool.getExecutorService();

        for (int i = 0; i < 50; i++) {
            service.execute(() -> System.out.println("当前线程: " + Thread.currentThread().getName()));
        }
    }
}
